package cn.wen.yinxiu.member.controller;import cn.wen.yinxiu.common.convention.result.ResultEntity;import cn.wen.yinxiu.common.convention.result.Results;import cn.wen.yinxiu.member.service.UsersService;import cn.wen.yinxiu.member.vo.HeaderNavUserInfoVO;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.*;/** * @ClassName: IndexController * @Author: 小飞 * @Date: 2023/5/29 12:47 * @Description: 公共Controller类信息 */@RequestMapping("/web")@RestControllerpublic class IndexController {    @Autowired    private UsersService usersService;    @GetMapping("/api/index/header/nav/info")    public ResultEntity getHeaderNavInfo(@RequestParam("userId") Long userId) {        HeaderNavUserInfoVO info = usersService.queryUserHeaderInfo(userId);        return Results.success(info);    }}